"""
定义4个变量，需求：姓名：孙悟空，年龄：600岁，技能：筋斗云、72变，主要战绩：大闹天宫
"""
import random

name = "孙悟空"
age = 600
skill = "筋斗云"
fame = "大闹天宫"
print(f"姓名:{name},年龄:{age},技能:{skill},战绩:{fame}")
print("===========================================")
"""
定义变量，c1 = '可乐'，c2 = '牛奶'，通过Python代码把c1内容调整为牛奶，c2调整为可乐。（提示：两个数
的交换）
"""
c1 = "可乐"
c2 = "牛奶"
c3 = c1
c1 = c2
c2 = c3
print(f"c1={c1},c2={c2}")
"""
案例需求：完成一个石头剪刀布游戏, 实现人机比赛
"""
print("===========================================")
print("请选择:1、石头，2、剪刀，3、布")
player = int(input())
print("-------------")
computer = random.randint(1,3)
print(f"player:{player}")
print(f"computer:{computer}")
if player == 1 and computer == 3:
    print("你输了")
elif player == 2 and computer == 1:
    print("你输了")
elif player == 3 and computer == 2:
    print("你输了")
elif player == computer:
    print("平局")
else:
    print("你赢了")